﻿CREATE PROCEDURE BILL.UpdateBill
	@id INT = NULL,

	@customerId INT = NULL,
    @datetime DATETIME = NULL,
	@pay FLOAT = NULL,
	@sealed BIT = NULL,

	@checkValidation BIT = NULL
AS
BEGIN
	EXEC BILL.UpdateBillInternal  
		@id = @id,
		@customerId = @customerId,
		@datetime = @datetime,
		@pay = @pay,
		@sealed = @sealed,
		@checkValidation = @checkValidation

	SELECT Id = @id
END

GO
GRANT EXECUTE
    ON OBJECT::BILL.UpdateBill TO [BillingAdmin]
    AS [dbo];